<style lang="less">
@import "../../styles/common.less";
.ivu-table-sort {
  margin-top: 13px;
}
</style>

<template>
	<div style="background:#eee;padding: 20px">
	    <Card :bordered="false">
	        <p slot="title">提交信息</p>
	        <div>
				 <Table  :data="data1.userCommitList" :columns="columns1"></Table>
	        </div>
	    </Card>
		<Page :total="data1.total" show-total  @on-change="changePage"></Page>
		
	</div>
</template>
<script>
export default {
  components: {},
  data() {
    
    return {
		columns1: [
			{
				title: '类型',
				key: 'type'
			},
      {
				title: '分类',
				key: 'category'
			},
			{
				title: '姓名',
				key: 'name'
			},
			{
				title: '手机号码',
				key: 'mobileno'
			},
			{
				title: '金额',
				key: 'money'
			},
			{
				title: '城市',
				key: 'city'
			},
			{
				title: '公司',
				key: 'company'
			},
			{
				title: '邮箱',
				key: 'email'
			},
			{
				title: '备注',
				key: 'memo'
			},
			{
				title: '创建时间',
				key: 'dateCreate'
			},
			
		],
		data1:{},
		
    };
  },
  methods: {
    getSearchCommitInfo(index){
		var options=this.common.request({
			"startIndex":index,"pageSize":10
		})
		this.$http.post("/admin/searchCommitInfo", options).then((res)=>{
			this.data1=res.data.body.data;
			for(var i=0;i<this.data1.userCommitList.length;i++){
				if(this.data1.userCommitList[i].type ==1){
					this.data1.userCommitList[i].type="表格提交"
				}else{
					this.data1.userCommitList[i].type="预约提交"
				}
			}
			console.log(this.data1)
		})
	},
	changePage(index){
		console.log(index)
		this.getSearchCommitInfo(index-1)
	}
  },
  mounted() {
	this.getSearchCommitInfo(0)  
  }
};
</script>
<style lang="scss" scoped>
.con-map {
  height: 290px;
  width: 100%;
}
.con-box {
  .mapbox {
    margin-bottom: 10px;
    //position: fixed;
    z-index: 111;
    width: 768px;
    height: 280px;
    padding: 10px 0;
    background: #eceeee;

    .map {
      width: 100%;
      height: 280px;
    }
  }

  .Hlist-box {
    width: 96%;
    margin: 0 auto;
    height: 300px;
    overflow-y: auto;
    background: #fff;
    border-radius: 5px;
    li {
      //height: 40px;
      padding: 14px 22px;
      border-bottom: 1px solid #d9d9d9;
      display: flex;
      b {
        display: inline-block;

        i {
          margin: 18px 18px 0 0;
        }
      }
      div {
        width: 100%;
      }
      span {
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        font-size: 15px;
        display: inline-block;
        width: 90%;
      }
      p {
        margin-top: 10px;
        color: #a6a6a6;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        font-size: 13px;
        width: 90%;
      }
    }
  }
}
.mymapM {
  .search-box {
    height: 48px;
    line-height: 48px;
    margin-bottom: 16px;
    //border-bottom: 1px solid #bfbec4;

    .search-postion {
      height: 48px;
      line-height: 48px;
      width: 768px;
      //position: fixed;
      z-index: 99999;
      display: flex;
      input {
        flex: 4;
        height: 48px;
        line-height: 48px;
        padding: 16px 0;
        border: none;
        outline: none;
        background-color: #e5e5e5;
        text-indent: 10px;
      }
      .clear {
        margin: 2px 6px;
      }
      .buts {
        width: 15%;
        text-align: center;
        display: inline-block;
        flex: 1;
      }
      .border_but {
        border-left: 1px solid #8f8f8f;
        height: 14px;
        line-height: 14px;
        margin: 17px 0;
      }
    }
  }
  .search-list {
    width: 100%;
    margin: 0 auto;
    margin-top: 10px;
    border-radius: 5px;
    background: #fff;
    li {
      //height: 40px;
      padding: 14px 0 14px 0;
      border-bottom: 1px solid #d9d9d9;
      span {
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        font-size: 15px;
        display: inline-block;
        width: 90%;
      }
      p {
        margin-top: 10px;
        color: #a6a6a6;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        font-size: 13px;
        width: 90%;
      }
    }
  }
}
.loading {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 99999999;
}
</style>